import sublime,sublime_plugin
import datetime

class phpheadCommand(sublime_plugin.TextCommand):
    def run(self, edit):
        self.view.run_command("insert_snippet",
            {
                "contents":"<?php\n"
        "/**""\n"
        " * Author      : rainbow <977746075@qq.com>\n"
        " * DateTime    : "  "%s"  %datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") +"\n"
        " * Description : [Description]\n"
        " */\n"
        "\n"
                "namespace app\\\n"
                "// use\n"
                "\n"
                "class ClassName {\n"
        "\n"
        "}"
            }
        )